package com.sumainfor.pc.gmio.controller.housekeeper;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.common.utlis.PageUtils;
import com.sumainfor.common.utlis.Pager;
import com.sumainfor.pc.gmio.service.HoForcedReasonService;
import com.sumainfor.pc.gmio.service.HoLivecardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 *强制退原因
 */
@RestController
@RequestMapping("/housekeeper/HoForcedReason")
public class HoForcedReasonController implements Serializable {
    @Autowired
    private HoForcedReasonService hoForcedReasonService;

    /**
     * 查询强制退原因
     */
    @GetMapping("/getHoForcedReasonList")
    public JsonResult getHoForcedReasonList(@RequestParam Map<String,Object>params){
        JsonResult result=new JsonResult();
        List<Map<String,Object>> list=hoForcedReasonService.getHoForcedReasonList(params);
        if (list!=null){
            result.put(list);
        }else{
            result.putFailed("服务器繁忙");
        }
        return result;
    }

}
